package com.shengyuan.manage_os.old.ying.erpm.controls;

import com.shengyuan.manage_os.old.ying.erpm.WorkSpaceActivityGC;
import com.shengyuan.manage_os.old.ying.erpm.data.Machinery;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.TextView;

public class CheLiangMingCheng extends TextView {

	public static Machinery mMachinery;
	public CheLiangMingCheng(Context context) {
		super(context);

	}
	public CheLiangMingCheng(Context context, AttributeSet attrs) {
		super(context,attrs);
		try {
			String text="NO Car Number";
			if (!isInEditMode()) {
				if (WorkSpaceActivityGC.mMachinery!=null) {
					mMachinery = WorkSpaceActivityGC.mMachinery;
					text = WorkSpaceActivityGC.mMachinery.Name;
				}
			}

			this.setText(text);
		} catch (Exception e) {
		}
	}
}
